<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="robots" content="all" />
<meta name="author" content="Neaton" />
<meta name="Copyright" content="mr-fang.com" />
<meta name="Description" content="/>
<meta name="Keywords" content=""/>
<title>留言管理 - mr-fang.com</title>
{literal}
<style>
body,div,form,img,p,ul,ol,li,dl,dt,dd,embed,h1,h2,h3,h4,h5,h6,td,tr,span,fieldset,label,legend{margin:0; padding:0; border:0;}
body{color:#595959;font-family:Verdana,Tahoma,Helvetica,Arial,"宋体";font-size:12px;line-height:22px;background:url('/misc/images/bg.jpg');}
a{text-decoration:none;color:#000000}
#main{width:100%;padding:0;text-align:center}
#nav{margin-top:65px}
.current{color:#993300}
a:hover{color:#993300}
#content{margin-top:25px;}
#logo{margin-top:15px;}
#footer{margin-top:10px;color:#000000}
#hr{height:1px;line-height:1px;width:600px;background-color:gray;}
.messageBox{text-align:left;width:50%;}
.messageBox td{border-bottom:1px solid gray;}
.logininput{width:130px;background:transparent;border:0;border-bottom:1px solid black;height:20px;font-size:16px;font-weight:bold}
</style>
{/literal}
</head>
<body>

<div id="main">
    <div id="nav">
        <a href="/admin/intro">【 简 介 】</a>
        <a href="/admin/messageListUnpass" class="current">【 留言管理 】</a>
        <a href="/admin/articleList">【 文章管理 】</a>
        <a href="/admin/cateList">【 分类管理 】</a>
    </div>

    <div id="content" style="height:400px">

        <table class="messageBox" align="center">
        <tr><td>
        <a href="/admin/messageListUnpass" {if $actionName eq 'messageListUnpassAction'}class="current"{/if}>未审核</a>
        <a href="/admin/messageListPass" {if $actionName eq 'messageListPassAction'}class="current"{/if}>已审核</a>
        </td></tr>
        {if $messages}
        {foreach from=$messages item=m}
        <tr><td>
        <div><i>{$m.me_nickname}</i> 在 <i>{$m.me_created}</i> 留言：<br />{$m.me_content}
        <br />
        操作：<a href="/admin/messageRemove?meid={$m.meid}">删除</a> 
        <form action="/admin/messageReply" method="post">
        <textarea name="replyContent" rows="3">{$m.replies.0.me_content}</textarea> 
        <input type="hidden" name="meid" value="{$m.meid}">
        <input type="hidden" name="replyid" value="{$m.replies.0.meid}">
        <input type="submit" value="回复">
        </form>
        </div>
        </td></tr>
        {/foreach}
        {else}
        <tr><td>暂时没有留言</td></tr>
        {/if}
        </table>

        {include file="base/page.tpl"}
    </div>

</div>

<script type="text/javascript" src="/misc/scripts/jquery.min.js"></script>
<script type="text/javascript">
{literal}

{/literal}
</script>
